package com.eg366.cxf.helloWorld.impl;

import java.util.ArrayList;
import java.util.List;

import javax.jws.WebService;

import com.eg366.cxf.helloWorld.IHelloWorld;
import com.eg366.cxf.vo.Student;

@WebService(name = "com.eg366.cxf.helloWorld.impl.IHelloWorld")
public class HelloWorld implements IHelloWorld {

	@Override
	public String say() {
		System.out.println("call say()");
		return "eg366";
	}

	@Override
	public String sayByName(String name) {
		System.out.println("call say(name)");
		return "hello, " + name;
	}

	@Override
	public List<String> getCitys() {
		List<String> citys = new ArrayList<String>();
		citys.add("北京");
		citys.add("天津");
		citys.add("上海");
		return citys;
	}

	@Override
	public List<Student> getStudents() {
		List<Student> students = new ArrayList<Student>();
		students.add(new Student("zhangsan", 20));
		students.add(new Student("lisi", 30));
		return students;
	}
}
